package cn.louguanyang.azure;

import android.test.InstrumentationTestCase;

import junit.framework.Assert;

import java.util.Date;

import cn.louguanyang.carbon.utils.DateUtils;

/**
 * Created by louguanyang on 15/12/28.
 */
public class DateUtilsTest extends InstrumentationTestCase {

    private String TAG = DateUtils.class.getSimpleName();

    public void testGetYear() {
        Date date = DateUtils.parseDate("2015-12-28 10:22:33");
        Assert.assertEquals(2015, DateUtils.getYear(date));
    }
    public void testGetMonth() {
        Date date = DateUtils.parseDate("2015-12-28 10:22:33");
        Assert.assertEquals(12, DateUtils.getMonth(date));
    }
    public void testGetDay() {
//        Date date = DateFormat
//        Assert.assertEquals(28, DateUtils.getDay(date));
    }
}
